package com.org.cardplayer.game;

import java.util.Arrays;

/**
 * 
 * @author Thai Son 
 * @ Represent Comunity Cards
 * @see {@link#Card}
 * 
 */
public class ComunityCards {
	private Card[] flop;
	private Card turn;
	private Card river;

	public ComunityCards() {
		super();
		this.flop = new Card[3];
	}

	public Card[] getFlop() {
		return flop;
	}

	public void setFlop(Card card1, Card card2, Card card3) {
		this.flop[0] = card1;
		this.flop[1] = card2;
		this.flop[2] = card3;
	}

	public Card getTurn() {
		return turn;
	}

	public void setTurn(Card turn) {
		this.turn = turn;
	}

	public Card getRiver() {
		return river;
	}

	public void setRiver(Card river) {
		this.river = river;
	}

	@Override
	public String toString() {
		return "ComunityCards [flop=" + Arrays.toString(flop) + ", turn="
				+ turn + ", river=" + river + "]";
	}

}
